package cn.hd.shop_springboot.pojo;

import java.util.Date;
import java.util.List;

public class Order {
    private Integer id;

    private Integer orderno;

    private Integer oderprice;

    private Date ordertime;

    private Float sum;

    private Integer userid;

    private List<Product> products;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOrderno() {
        return orderno;
    }

    public void setOrderno(Integer orderno) {
        this.orderno = orderno;
    }

    public Integer getOderprice() {
        return oderprice;
    }

    public void setOderprice(Integer oderprice) {
        this.oderprice = oderprice;
    }

    public Date getOrdertime() {
        return ordertime;
    }

    public void setOrdertime(Date ordertime) {
        this.ordertime = ordertime;
    }

    public Float getSum() {
        return sum;
    }

    public void setSum(Float sum) {
        this.sum = sum;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }


    public List<Product> getProducts() {
        return products;
    }

    public void setProducts(List<Product> products) {
        this.products = products;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", orderno=" + orderno +
                ", oderprice=" + oderprice +
                ", ordertime=" + ordertime +
                ", sum=" + sum +
                ", userid=" + userid +
                ", products=" + products +
                '}';
    }
}